-
Notifications
You must be signed in to change notification settings - Fork 2
Specify --target-port on docs and match port on quickstart guide #47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
AFAIK we have 2 ports: the proxy port in which ToolHive runs and a hardcoded port that may be used by an MCP server. For the second one, the current flag should be `--target-port` instead of `--port`. Changed the only reference I could find in docs. Also, there was a small typo in the quickstart guide in the ports. The text was talking about port `49226` but the port shown in the example was port `15266`.
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
I'm not sure about this. I think the docs are correct. The Also for the |
|
@eleftherias Yeah, also not sure about Yes, you're right, I changed one port that I shouldn't, i.e. it was meant to be different. However, I do think the mention of the port in the text needed to be fixed |
danbarr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @aponcedeleonch. As you and @eleftherias were discussing, --port was indeed the intended flag in the run guide, but you're right the accompanying text wasn't as clear as it could be. Left a suggested change.
And nice catch on the port mismatch in the quickstart. I refreshed the example output recently to match a change in what the CLI shows, but missed this mismatch. Thanks!
|
Fun fact, I just saw this flag is about to change on the next release: stacklok/toolhive#1022 😆 |
Co-authored-by: Dan Barr <[email protected]>
danbarr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
|
@danbarr Nice! Accepted the code suggestions. Then, should we document also the flag |
IMO this is more of an advanced/internal thing to need to specify the target port, for now I think we can leave this to the CLI references vs. trying to document every possible scenario. Maybe a separate "advanced configuration" guide could emerge later for less common instances like this. |
AFAIK we have 2 ports: the proxy port in which ToolHive runs and a hardcoded port that may be used by an MCP server. For the second one, the current flag should be
--target-portinstead of--port. Changed the only reference I could find in docs.Also, there was a small typo in the quickstart guide in the ports. The text was talking about port
49226but the port shown in the example was port15266.